//
//  TextViewController.h
//  IconMaster
//
//  Created by 为为 on 13-6-8.
//  Copyright (c) 2013年 为为. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "IconViewController.h"

@class TextViewController;

typedef void(^TextViewControllerBlock)(TextViewController* tvc);

@interface TextViewController : UIViewController
{
	NSMutableDictionary *controllerDict;
	BOOL				followingKeyboard;
	
	__weak IBOutlet UIBarButtonItem *textButton;
	__weak IBOutlet UIBarButtonItem *fontButton;
	__weak IBOutlet UIBarButtonItem *colorButton;
	__weak IBOutlet UIView *contentView;
	__weak IBOutlet UIToolbar *toolbar;
	
}
@property(nonatomic, weak) SpriteView* textNoteSprite;
@property(nonatomic, weak) IconViewController* iconConctroller;
@property(nonatomic, copy) TextViewControllerBlock textFieldPressedBlock;
@property(nonatomic, copy) TextViewControllerBlock fontButtonPressedBlock;
@property(nonatomic, copy) TextViewControllerBlock colorButtonPressedBlock;

- (IBAction)textButtonPressed:(id)sender;
- (IBAction)fontButtonPressed:(id)sender;
- (IBAction)colorButtonPressed:(id)sender;

- (void)hideKeyboard;

@end
